import * as React from "react";
import { BrowserRouter,Route,Switch } from "react-router-dom";
import routers from "./router/index";
class App extends React.Component<any,any>{
  render(): React.ReactNode {
    return (
        <BrowserRouter>
            {
                routers.map(router=>{
                    return (
                        <Route
    path={router.path}
    component = {router.component}
    />
                    )
                })
            }
        </BrowserRouter>
    )
  }
}
export default App